package com.zjitc.backend_shop.service;

import com.github.pagehelper.PageInfo;
import com.github.pagehelper.PageInfo;
import com.zjitc.backend_shop.pojo.Goods;

import java.util.List;

/**
 * @author 王新瑜
 * @date 2024/12/20 10:04
 */

public interface GoodsService {
    List<Goods> findAllGoods();

    public Goods addGoods(Goods goods);

    public boolean updateGoods(Goods goods);

    public boolean deleteGoods(Integer id);


    public PageInfo<Goods> getGoodsByPage(int pageNum, int pageSize,String search);

    public Goods findGoodsById(Integer id);


}
